package imserver.service;

import java.util.List;

import imserver.beans.MessageInfo;
import imserver.common.util.DaoException;
import imserver.dao.BaseDao;

public interface MessageService extends BaseDao<MessageInfo>{
	/**
	 * 发送消息
	 * @param messageInfo
	 * @throws DaoException 
	 */
	public void send(String sender, String to, String content) throws DaoException;
	
	/**
	 * 接收消息
	 * @param memberId
	 * @return
	 * @throws DaoException 
	 */
	public List<MessageInfo> reciver(String to) throws DaoException;
	
	
	/**
	 * 接收成功，发送报告
	 * @throws DaoException 
	 */
	public void reportSuccess(long msgid) throws DaoException;
}
